package com.wwdx.service.impl;

import com.wwdx.wechat.config.BaseWxConfig;
import com.wwdx.wechat.config.midu.MdWxConfig;
import com.wwdx.wechat.handler.*;
import com.wwdx.wechat.handler.midu.*;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author liguoliang
 */
@Service
public class MiDuWxService extends BaseWxService {

    @Resource
    private MdWxConfig mdWxConfig;
    @Resource
    private MdMsgHandler mdMsgHandler;
    @Resource
    private MdUnsubscribeHandler mdUnsubscribeHandler;
    @Resource
    private MdSubscribeHandler mdSubscribeHandler;
    @Resource
    private MdScanHandler mdScanHandler;
    @Resource
    private MdMenuHandler mdMenuHandler;

    @Override
    protected BaseWxConfig getServerConfig() {
        return mdWxConfig;
    }

    @Override
    protected AbstractMenuHandler getMenuHandler() {
        return mdMenuHandler;
    }

    @Override
    protected AbstractSubscribeHandler getSubscribeHandler() {
        return mdSubscribeHandler;
    }

    @Override
    protected AbstractUnsubscribeHandler getUnsubscribeHandler() {
        return mdUnsubscribeHandler;
    }

    @Override
    protected AbstractMsgHandler getMsgHandler() {
        return mdMsgHandler;
    }

    @Override
    protected AbstractScanHandler getScanHandler() {
        return mdScanHandler;
    }
}